{{template "g_header.tpl" .}}
{{if .list}}
<div class="row">
    <div class="col-xs-12">
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th>Id</th>
                <th>姓名</th>
                <th>电话</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            {{range .list}}
            <tbody>
            <tr>
                <td>{{.StaffId}}</td>
                <td>{{.Username}}</td>
                <td>{{.Phone}}</td>
                <td>{{.Created}}</td>
                <td>
                    <a href="/Staff/Edit?id={{.StaffId}}" class="btn btn-xs btn-info">
                        <i class="ace-icon fa fa-pencil bigger-120"></i>
                    </a>
                    <button class="btn btn-xs btn-danger" onclick="del('{{.StaffId}}')">
                        <i class="ace-icon fa fa-trash-o bigger-120"></i>
                    </button>
                </td>
            </tr>
            </tbody>
            {{end}}
        </table>
    </div>
</div>
{{end}}
{{template "g_footer.tpl" .}}
<script>
    function del(id) {
        if (!confirm('你确定要删除吗?')) {

        }
    }
</script>